package ooday05_homework;

public class StaticMethod {
    int a;
    static int b;
    //常量
    public static int num;
    public static final int COUNT = 5;

    void show() {
        System.out.println(a);//与对象有关，不适合静态方法
        System.out.println(b);
    }

    static void test() {
        //System.out.println(a);//静态方法中不能直接访问实例变量
        System.out.println(b);
    }

    //在plus中不需要访问对象的熟悉/行为，plus的操作与对象无关
    static int plus(int num1, int num2){
        int num = num1 + num2;
        return num;
    }


}
